﻿$(document).ready(function () //
{
    $("#btnContribute").click(btnOk_click);

    $(window).on('resize', setCufonFonts);

    setCufonFonts();


});

function setCufonFonts() {

    Cufon.replace('#FormContribute > fieldset > legend', {
        fontFamily: 'Museo Slab 900',
        fontSize: getCuffonFontSize(30) + 'px'
    });
    Cufon.replace('.Ads > fieldset > legend', {
        fontFamily: 'Museo Slab 900',
        fontSize: getCuffonFontSize(20) + 'px'
    });


    Cufon.refresh();

}

function btnOk_click() {

    $.AjaxMVC(
            {
                Url: "/story/Contribute",
                Container: "#FormContribute",
                ResetContainer: true
            });


}